package com.tzl.design_pattern.delegate_pattern;

/**
 * 委派模式:<br>
 * 委派模式的基本作用就是负责任务的调度和分配,
 *
 * @author Zhilei Tang
 * @date Created in 2020/11/14 17:55
 */
public class DelegateTest {
  public static void main(String[] args) {
    new Boss().startWork("修复bug", new Manager_2());
    new Boss().startWork("部署项目", new Manager_2());
    new Boss().startWork("开发功能", new Manager_2());
  }
}
